package com.cn.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cn.dao.ProductDao;
import com.cn.pojo.Qc_classify;
import com.cn.service.ProductServices;

@Service("productServices")
public class ProductServieImpl implements ProductServices {

	@Resource
	private ProductDao productDao;
	public List<Qc_classify> getProductAll() {
		
		return productDao.getProductAll();
	}

	public int updateProduct(Qc_classify classify) {
		
		return productDao.updateProduct(classify);
	}

	public int deleteProduct(int cid) {
		
		return productDao.deleteProduct(cid);
	}

	public int addProduct(Qc_classify classify) {
		
		return productDao.addProduct(classify);
	}

	public void setProductDao(ProductDao productDao) {
		this.productDao = productDao;
	}

	public Qc_classify getSeachById(int cid) {
		return productDao.getSeachById(cid);
	}
}
